package com.fivebrms.hibernate.entity.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

@Entity
@Table(name = "independentForm")
public class IndependentForm
{
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private long	id;
	@Column(name = "contractorName")
	private String	contractorName;
	@Column(name = "contractorAddress")
	private String	contractorAddress;	
	@Column(name = "dateSubmitted")
	private Timestamp	dateSubmitted;	
	
	public long getId()
    {
    	return id;
    }

	public void setId(long id)
    {
    	this.id = id;
    }

	public String getContractorName()
    {
    	return contractorName;
    }

	public void setContractorName(String contractorName)
    {
    	this.contractorName = contractorName;
    }

	public String getContractorAddress()
    {
    	return contractorAddress;
    }

	public void setContractorAddress(String contractorAddress)
    {
    	this.contractorAddress = contractorAddress;
    }

	public Timestamp getDateSubmitted()
    {
    	return dateSubmitted;
    }

	public void setDateSubmitted(Timestamp dateSubmitted)
    {
    	this.dateSubmitted = dateSubmitted;
    }

	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}

	public boolean equals(Object obj)
	{
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	public int hashCode()
	{
		return HashCodeBuilder.reflectionHashCode(this);
	}

}